From 5eb482ebaadcd078abad5cfcec7e9dfbc2c57c99 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 12 Oct 2020 21:32:37 -0400 Subject: [PATCH] atspi: Treat all entries the same for collecting state We are determining editable state based on the accessible role (although we could make it platform state now), so cover all the roles that we use for entry wrappers. --- gtk/a11y/gtkatspicontext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 348c794917..27157feda2 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -125,7 +125,8 @@ collect_states (GtkAtSpiContext *self, set_atspi_state (&states, ATSPI_STATE_VISIBLE); if (ctx->accessible_role == GTK_ACCESSIBLE_ROLE_TEXT_BOX || - ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SEARCH_BOX) + ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SEARCH_BOX || + ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SPIN_BUTTON) set_atspi_state (&states, ATSPI_STATE_EDITABLE); if (gtk_at_context_has_accessible_property (ctx, GTK_ACCESSIBLE_PROPERTY_READ_ONLY)) -- 2.30.2